getting client ip address information from http request.
getting client ip address information from http request.
am 05.02.2010 14:13:58 von Arnab Ganguly
--001636457b246f51e0047eda39e5
Content-Type: text/plain; charset=ISO-8859-1
Hi All,
How do I retrieve client ip information from the http request in Apache
module ? Like the loadbalancer is putting it own ip in the place of client
ip address. We tried %{X-Forwarded-For} but this takes care of access log
not the module specific log.
So from the request is there any function call can be done to retrieve the
client information.
Thanks in advance.
-A
--001636457b246f51e0047eda39e5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi All,
How do I retrieve client ip information from the http request in=
Apache module ? Like the loadbalancer is putting it own ip in the place of=
client ip address. We tried %{X-Forwarded-For} but this takes care of acce=
ss log not the module specific log.
So from the request is there any function call can be done to retrieve =
the client information.
Thanks in advance.
-A
--001636457b246f51e0047eda39e5--
Re: getting client ip address information from http
am 05.02.2010 14:30:24 von Eric Covener
On Fri, Feb 5, 2010 at 8:13 AM, Arnab Ganguly wrote:
> Hi All,
> How do I retrieve client ip information from the http request in Apache
> module ? Like the loadbalancer is putting it own ip in the place of client
> ip address. We tried %{X-Forwarded-For} but this takes care of access log
> not the module specific log.
>
> So from the request is there any function call can be done to retrieve the
> client information.
Why not just read the x-forwarded-for request header in your module?
--
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: getting client ip address information from http
am 05.02.2010 14:34:13 von Arnab Ganguly
--001485f1d816d54aad047eda817b
Content-Type: text/plain; charset=ISO-8859-1
Thanks!!
As x-forwarded is configured in httpd.conf, so if we don't configure we
don't get the information.Is it possible to make the module independent of
the configuration file.... and just from the request get the information ?
-A
On Fri, Feb 5, 2010 at 7:00 PM, Eric Covener wrote:
> On Fri, Feb 5, 2010 at 8:13 AM, Arnab Ganguly
> wrote:
> > Hi All,
> > How do I retrieve client ip information from the http request in Apache
> > module ? Like the loadbalancer is putting it own ip in the place of
> client
> > ip address. We tried %{X-Forwarded-For} but this takes care of access log
> > not the module specific log.
> >
> > So from the request is there any function call can be done to retrieve
> the
> > client information.
>
> Why not just read the x-forwarded-for request header in your module?
>
> --
> Eric Covener
> covener@gmail.com
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--001485f1d816d54aad047eda817b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks!!
As x-forwarded is configured in httpd.conf, so if we don't=
configure we don't get the information.Is it possible to make the modu=
le independent of the configuration file.... and just from the request get =
the information ?
-A
On Fri, Feb 5, 2010 at 7:00 PM, Eric C=
ovener
<covener@g=
mail.com> wrote:
=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; p=
adding-left: 1ex;">
On Fri, Feb 5, 2010 at 8:13 AM, Arnab Gan=
guly <&g=
t; wrote:
> Hi All,
> How do I retrieve client ip information from the http request in Apach=
e
> module ? Like the loadbalancer is putting it own ip in the place of cl=
ient
> ip address. We tried %{X-Forwarded-For} but this takes care of access =
log
> not the module specific log.
>
> So from the request is there any function call can be done to retrieve=
the
> client information.
Why not just read the x-forwarded-for request header in your mo=
dule?
--
Eric Covener
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:
lank">http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail:
g">users-unsubscribe@httpd.apache.org
=A0 " =A0 from the digest:
@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail:
org">users-help@httpd.apache.org
--001485f1d816d54aad047eda817b--
Re: getting client ip address information from http
am 05.02.2010 14:37:50 von Eric Covener
On Fri, Feb 5, 2010 at 8:34 AM, Arnab Ganguly wrote:
> Thanks!!
> As x-forwarded is configured in httpd.conf,
Isn't it added by the proxy server? What does it have to do with httpd.conf?
--
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: getting client ip address information from httprequest.
am 05.02.2010 19:43:11 von wrowe
On 2/5/2010 7:13 AM, Arnab Ganguly wrote:
> Hi All,
> How do I retrieve client ip information from the http request in Apache
> module ? Like the loadbalancer is putting it own ip in the place of
> client ip address. We tried %{X-Forwarded-For} but this takes care of
> access log not the module specific log.
>
> So from the request is there any function call can be done to retrieve
> the client information.
You are looking for
http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/metad ata/mod_remoteip.c
http://httpd.apache.org/docs/trunk/mod/mod_remoteip.html
(yes, it will build on httpd-2.2).
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: How to get rid off favicon
am 26.02.2010 15:40:26 von Rich Bowen
On Feb 26, 2010, at 9:44 AM, Nitin Gupta wrote:
> I have configured my WAP site as a virtual host in Apache. My WAP site =
does
> not have a Favicon and I don't want to use it either. Microbrowsers =
are
> complaining about the favicon and are getting a 404 error from my =
tomcat web
> server, which is behind Apache server.
>=20
> Please suggest how I can configure Apache to not serve the favicon and
> simply make the browser happy without my users seeing a 404 page. Can =
I make
> use of mod redirect here. If yes, then please suggest an appropriate
> configuration as I am not very good with Apache configuration.
This is not an Apache issue. This is a browser issue. Browsers request =
this file, and there's nothing you can do about that on the server side. =
What I recommend is that you create a favicon.ico file, or at the very =
least, create a zero-byte file called favicon.ico to silence the errors. =
Do this by typing:
touch favicon.ico
at the command line in your document directory.
--Rich=
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
How to get rid off favicon
am 26.02.2010 15:44:42 von Nitin Gupta
Hi all,
I have configured my WAP site as a virtual host in Apache. My WAP site does
not have a Favicon and I don't want to use it either. Microbrowsers are
complaining about the favicon and are getting a 404 error from my tomcat web
server, which is behind Apache server.
Please suggest how I can configure Apache to not serve the favicon and
simply make the browser happy without my users seeing a 404 page. Can I make
use of mod redirect here. If yes, then please suggest an appropriate
configuration as I am not very good with Apache configuration.
Rgds
nitin
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org